<template>
    <div class="header">
        <div class="arrow-left" @click="handleBack()"><van-icon name="arrow-left" /></div>
        <slot></slot>
        <div class="wap-home-o" @click="handleHome()"><van-icon name="wap-home-o" /></div>
    </div>
</template>
<script>
export default {
    methods: {
        handleBack () {
            this.$router.back()
        },
        handleHome () {
            this.$router.push('/home/homedata/todayTenNewGoo')
        }
    }
}
</script>
<style lang="scss" scoped>
.header{
    width: 100%;
    height: 44px;
    text-align: center;
    background-color: #fff;
    // border-bottom: 1px solid #f4f4f4;
    line-height: 44px;
    color: rgb(61, 61, 61);
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 18px;
    .arrow-left{
        float: left;
        font-size: 20px;
    }
    .wap-home-o{
        float: right;
        font-size: 24px;
    }
}
</style>
